<template>
  <div class="">
    <el-input v-model="widgetConfig.options.cardName"></el-input>
  </div>
</template>

<script>
export default {
  name: 'cardNameSetter',
  inject: ['allWidgetForm', 'elementConfig'],
  props: [
    'value',
    'sheets',
    'platform',
    'datasources',
    'eventscripts',
    'appId',
    'setterConfig',
    'staticConfig'
  ],
  data(){
    return {
      visible: false,
      
    }
  },
  computed: {
    model: {
      get() {
        return this.value
      },
      set(val) {
        this.$emit('input', val)
      }
    },
    widgetForm() {
      return this.allWidgetForm()
    },
    // 当前组件options配置信息
    widgetConfig() {
      return this.elementConfig();
    },
    numberList() {
      let list = []
      if (this.widgetForm.list && this.widgetForm.list.length) {
        list = this.widgetForm.list.filter(item => item.type === 'number')
      }
      return list
    }
  },
  methods: {
    addCenter() {
      this.visible = true 
    },
    saveRange(val) {
      this.widgetConfig.options.center= val
      this.visible = false
    }
  }
}
</script>
<style lang="scss">
.k-plugin-address-select-map {
  .el-dialog__header {
    padding: 0;
    height: 48px;
    border-bottom: 1px solid #d2d4d6;
  }
  .el-dialog__body {
    padding: 0px 20px 30px;
  }
}
</style>